﻿using Yunzuan.Common;
using Yunzuan.Foundation.Web;

namespace Yunzuan.Common
{
    public class EntityUrl
    {
        public string entityUrl = "";
        public EntityUrl(int type = GoodsType.Ring)
        {
            if (entityUrl == "")
            {
                switch (type)
                {
                    case GoodsType.Diamond:  //裸钻
                        entityUrl = GlobalConfig.ParcelsUrl;
                        break;
                    case GoodsType.Parcel:  //统包
                        entityUrl = GlobalConfig.TransmissionParcelOprateUrl;
                        break;
                    case GoodsType.Ring:  //成品
                        entityUrl = GlobalConfig.TransmissionInlaysOprateUrl;
                        break;
                    case GoodsType.Gem:  //彩宝
                        entityUrl = GlobalConfig.TransmissionGemOprateUrl;
                        break;
                    case GoodsType.Emerald:  //翡翠
                        entityUrl = GlobalConfig.TransmissionEmeraldOprateUrl;
                        break;
                    case GoodsType.PrimeGolds:  //素金
                        entityUrl = GlobalConfig.TransmissionPrimeGoldsImportUrl;
                        break;

                }
            }
        }
    }
}